home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 6 / FM Towns Free Software Collection 6.iso / ms_dos / mos / source / mos108.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-08  |  400 b   |  22 lines

  1.  
  2. /*
  3.  *
  4.  *    MOS108 : マウスカ-ソルの水平移動範囲指定
  5.  *
  6.  */
  7.  
  8. #include <stdio.h>
  9. #include <dos.h>
  10.  
  11. unsigned int MOS_horizon(signed int x1,signed int x2) {
  12.    union  REGS  inregs, outregs;
  13.    struct SREGS segregs;
  14.  
  15.    segread(&segregs);
  16.    inregs.x.ax=0x0700;
  17.    inregs.x.dx=x1;
  18.    inregs.x.bx=x2;
  19.    int86x(0x99,&inregs,&outregs,&segregs);
  20.    return (unsigned int)outregs.h.ah;
  21. }
  22.